Closes #20564: Many-to-many pass-through port mappings#20851
Merged
Closes #20564: Many-to-many pass-through port mappings#20851
Conversation
…ing front/rear ports
jeremystretch
commented
Dec 1, 2025
Member
Author
There was a problem hiding this comment.
The only changes made in this file are to update the test data to use PortMappings. None of the test methods themselves have been significantly modified.
Member
Author
|
Aside from the incomplete items noted in the TODO list above, I believe this is ready for review. |
Collaborator
Collaborator
Collaborator
arthanson
requested changes
Dec 9, 2025
Collaborator
arthanson
left a comment
There was a problem hiding this comment.
Looks good - the main item is fixing the confusing "rear ports" reference, should be "front ports" on the rear ports detail page. Couple other suggested UI tweaks.
Member
Author
Agreed, but this improvement would be out of scope for #20564. Do you want to open a separate FR for it? |
arthanson
approved these changes
Dec 9, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Closes: #20564
Note: Any changes made for FrontPort or RearPort are also made for their corresponding template models, FrontPortTemplate and RearPortTemplate, unless otherwise notes.
PortMappingmodel to map port & position pairs between FrontPorts and RearPortsmappingsrelation on both FrontPort & RearPortpositionsIntegerField on FrontPort to match the existingpositionsfield on RearPortrear_portForeignKey andrear_port_positionIntegerField from FrontPortfront_portson RearPortSerializerrear_portson FrontPortSerializercreate_port_mappings()function for this purposerear_portandrear_port_positioncolumns from FrontPortTablemappingscolumn to both FrontPortTable and RearPortTablefront_port_idfilter for RearPort and update FrontPort'srear_port_idfilterpositionsfilter for FrontPort and FrontPortTemplaterear_portfield on FrontPortType withmappingsmappingsto RearPortTypeTODO
Cable.from_origin()